package com.mall.service;


import com.mall.db.api.OmsCompanyAddressApi;
import com.mall.pojo.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsCompanyAddressService {

    @DubboReference
    private OmsCompanyAddressApi omsCompanyAddressApi;

    /**
     * 获取全部订单地址信息
     */
    public List<OmsCompanyAddress> findlistCompanyAddress(){

        //调用方法
        List<OmsCompanyAddress> ocAs =   omsCompanyAddressApi.findlistCompanyAddress();
        return ocAs;

    }
}
